package dto

import "test/model"

type UserDto struct {
	Sno int`json:"sno"`
	Sname string `json:"sname"`
	Sdate string `json:"sdate"`
	Spayment int `json:"spayment"`
	Spassword string `json:"spassword"`
}

func ToUserDto(people model.Students) UserDto {
	return UserDto{
		Sno: people.Sno,
		Sname: people.Sname,
		Sdate: people.Sdate,
		Spassword: people.Spassword,
		Spayment: people.Spayment,
	}
}
